import request from '~/utils/request'
import cookie from 'js-cookie'
export default{
  login(obj) {
    return request({
      url: `/api/user/center/login`,
      method: 'post',
      data: obj
    })
  },
  getLoginInfo() {
    return request({
      url: '/api/user/center/get-login-info',
      method: 'get',
      // 通过请求头发送token
      headers: { 'token': cookie.get('cjc_edu_token') }
    })
  }
}
